package api

import (
	"feng-che.com/server/driver-quiz/internal/dep_jwt"
	"feng-che.com/server/driver-quiz/internal/institution"
	"feng-che.com/server/driver-quiz/internal/user"
	"github.com/gofiber/fiber/v2"
)

func installPartnerRouter(PartnerRouter fiber.Router) {

	PartnerRouter.Get("/getAllInstitutions", institution.RequestInstitutionInCache)

	PartnerRouter.Post("/login", user.MiddlewareFindUserByLoginName, user.AdminLogin)
	PartnerRouter.Post("/userLogOut", user.Logout)

	PartnerRouter.Use("/", dep_jwt.VerifyUserForNext, user.RequiredUserLogin)

}
